package com.team;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Song {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    
	@Persistent
	private String title;
	
	@Persistent
	private String artist;
	
	public Song(String title, String artist){
		this.title = title;
		this.artist = artist;
	}
	
    public Long getId() {
        return id;
    }
	
	public String getTitle(){
		return this.title;
	}
	
	public String getArtist(){
		return this.artist;
	} 
	
	public void setTitle(String title){
		this.title = title;
		
	}
	
	
	public void setArtist(String artist){
		this.artist = artist;
		
	}

}
